import { QuestionBase } from '../question-base';

export class RadioQuestion extends QuestionBase<string> {
  controlType = 'radio';

  constructor(options: {} = {}) {
    super(options);
    this.type = (<any>options)['type'] || '';
    this.options = (<any>options)['options'] || [
      { label: '是', value: 1 },
      { label: '否', value: 0 }
    ];
  }
}
